package com.zdkj.subway.support.common.cycle;

import java.time.LocalDateTime;

/**
 * @support: 三永华通科技有限公司
 * @author: cui_com
 * @version: 1.0
 * @Date: 2020-01-24 00:16
 * @Description: <p>
 *
 * </p>
 */
public class YearCycleHandler implements Cycle {
    @Override
    public LocalDateTime getLogEndDate(Integer cycleValue) {
        LocalDateTime now = LocalDateTime.now();
        return now.minusYears(cycleValue);
    }
}
